# Use bash to ensure environment variable assignments behave like the shell
set shell := ["bash", "-uc"]

# Build starry-mix for the Orange Pi 5 Plus (opi5p) with error-level logging
build:
    make ARCH=aarch64 LOG=error opi5p

# Flash the prepared boot image using scripts/con/flash_boot.sh
flash_boot:
    @echo "Flashing boot image..."
    bash ./scripts/con/flash_boot.sh

# Flash both boot and rootfs images using scripts/con/flash_rootfs.sh
flash_rootfs:
    @echo "Flashing rootfs image..."
    bash ./scripts/con/flash_rootfs.sh

# Flash U-Boot binary using scripts/con/flash_uboot.sh
flash_uboot:
    @echo "Flashing U-Boot..."
    bash ./scripts/con/flash_uboot.sh
